<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>返回图像映射某个区域的坐标</title>
</head>

<body>
    <img src="planets.gif" width="145" height="126" usemap="#planetmap">
    <map name="planetmap">
        <area id="venus" shape="circle" coords="124,58,8" alt="Venus" href="venus.htm">
    </map>
    <p>金星的坐标:
        <script>
            document.write(document.getElementById("venus").coords);
        </script>
    </p>
</body>

</html>